package com.github.catvod.spider;

import android.content.Context;
import android.text.TextUtils;
import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.CE;
import com.github.catvod.spider.merge.Dv;
import com.github.catvod.spider.merge.HZ;
import com.github.catvod.spider.merge.L;
import com.github.catvod.spider.merge.Lm;
import com.github.catvod.spider.merge.au;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.lk;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import okhttp3.Call;
import okhttp3.Response;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Bdys01 extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f15short = {1094, 1074, 1085, 1093, 1095, 1088, 1030, 1050, 1027, 1505, 1533, 1533, 1529, 1530, 1459, 1446, 1446, 2659, 1835, 1805, 1819, 1804, 1875, 1855, 1817, 1819, 1808, 1802, 3023, 3053, 3064, 3051, 3054, 3054, 3043, 2989, 2999, 2988, 2994, 2978, 2986, 3023, 3043, 3041, 3051, 3052, 3062, 3053, 3057, 3050, 3001, 2978, 3019, 3052, 3062, 3047, 3054, 2978, 3023, 3043, 3041, 2978, 3021, 3025, 2978, 3034, 2978, 2995, 2994, 3037, 2995, 2999, 3037, 2997, 2987, 2978, 3011, 3058, 3058, 3054, 3047, 3029, 3047, 3040, 3017, 3051, 3062, 2989, 2999, 2993, 2997, 2988, 2993, 2996, 2978, 2986, 3017, 3018, 3030, 3023, 3022, 2990, 2978, 3054, 3051, 3049, 3047, 2978, 3013, 3047, 3041, 3049, 3053, 2987, 2978, 3009, 3050, 3056, 3053, 3055, 3047, 2989, 3003, 2995, 2988, 2994, 2988, 2998, 2998, 2997, 2992, 2988, 2995, 2995, 2998, 2978, 3025, 3043, 3044, 3043, 3056, 3051, 2989, 2999, 2993, 2997, 2988, 2993, 2996, 2902, 2914, 2915, 2943, 2936, 2917, 2942, 2915, 2926, 2873, 2820, 2847, 2833, 2847, 2840, 3010, 3010, 3010, 2971, 3021, 3033, 3020, 3014, 2949, 2948, 2971, 3030, 3034, 3032, 723, 753, 753, 759, 738, 742, 703, 734, 755, 764, 757, 743, 755, 757, 759, 1781, 1767, 1698, 1740, 1729, 1699, 1781, 1767, 1716, 1790, 1714, 1727, 1697, 1719, 1699, 1781, 1767, 1698, 1755, 1752, 1716, 1790, 1714, 1727, 1697, 1720, 1699, 1781, 1767, 1698, 1735, 1732, 1716, 1790, 1714, 1727, 1697, 1722, 1699, 1770, 1761, 1698, 1754, 1756, 1716, 1790, 1714, 1727, 1697, 1724, 1699, 1770, 1761, 1716, 1790, 1714, 1727, 1697, 1725, 1024, 1028, 1042, 1134, 1028, 1026, 1027, 1134, 1041, 1034, 1026, 1042, 1142, 1041, 1056, 1061, 1061, 1064, 1071, 1062, 2686, 2682, 2668, 2034, 2022, 2043, 2029, 2028, 2043, 2036, 1342, 1334, 1336, 868, 888, 888, 892, 895, 822, 803, 803, 891, 891, 891, 802, 884, 864, 885, 895, 828, 829, 802, 879, 867, 865, 803, 895, 803, 1910, 1903, 1853, 1840, 1849, 1836, 1908, 2959, 3197, 3189, 3195, 3113, 2333, 2308, 2371, 2384, 2375, 2371, 2335, 2393, 2371, 2384, 2375, 2371, 2399, 2308, 2395, 2375, 2371, 2384, 2335, 2393, 2395, 2375, 2371, 2384, 2399, 2308, 2381, 2384, 2374, 2375, 2384, 2335, 2393, 2381, 2384, 2374, 2375, 2384, 2399, 1989, 1922, 1937, 1926, 1922, 2014, 1944, 1922, 1937, 1926, 1922, 1950, 1989, 1946, 1926, 1922, 1937, 2014, 1944, 1946, 1926, 1922, 1937, 1950, 1989, 1932, 1937, 1927, 1926, 1937, 2014, 1944, 1932, 1937, 1927, 1926, 1937, 1950, 2880, 2684, 3120, 3133, 3133, 1155, 1177, 1162, 1181, 1177, 1157, 576, 519, 532, 515, 519, 603, 541, 519, 532, 515, 519, 539, 2819, 2817, 2845, 2841, 2826, 2821, 1656, 1575, 1595, 1599, 1580, 1635, 1573, 1575, 1595, 1599, 1580, 1571, 2980, 611, 622, 622, 557, 926, 903, 974, 979, 965, 964, 979, 924, 913, 2493, 2548, 2537, 2559, 2558, 2537, 2470, 2475, 3284, 3272, 3272, 3276, 3279, 3206, 3219, 3219, 3275, 3275, 3275, 3218, 3268, 3280, 3269, 3279, 3212, 3213, 3218, 3295, 3283, 3281, 3219, 27240, 25024, 25783, 21753, 26209, 26170, -28856, 28749, 30746, 24917, 21039, 417, 428, 435, 491, 422, 426, 425, 488, 425, 418, 488, 509, 3038, 2949, 2968, 3035, 3028, 2971, 2950, 1934, 1930, 1920, 1993, 1936, 1994, 2006, 2007, 2007, 2686, 2687, 2670, 2858, 2932, 2871, 2872, 2935, 2922, 1330, 1405, 1335, 1406, 1329, 1343, 1340, 1328, 1336, 3243, 3249, 3238, 3237, 2482, 2475, 2493, 2475, 2475, 2481, 2487, 2486, 2481, 2492, 3255, 953, 928, 939, 912, 934, 939, 432, 425, 418, 409, 424, 423, 427, 419, 1785, 1760, 1771, 1744, 1791, 1766, 1772, 1774, 1783, 1788, 1735, 1770, 1789, 1781, 1785, 1770, 1779, 1771, 2173, 2156, 2154, 2152, 2983, 2998, 2992, 2994, 2996, 3000, 2978, 3001, 2979, 490, 495, 491, 495, 498, 2516, 2511, 2516, 2497, 2508, 293, 288, 314, 317, 1681, 1681, 1681, 30521, 23753, -2984, 1508, 1528, 1528, 1532, 1535, 1462, 1443, 1443, 1531, 1531, 1531, 1442, 1524, 1504, 1525, 1535, 1468, 1469, 1442, 1519, 1507, 1505, 822, 827, 804, 892, 817, 829, 830, 895, 831, 822, 895, 819, 807, 806, 829, 882, 827, 831, 821, 1071, 1070, 1087, 1606, 1567, 1536, 1610, 1539, 1600, 1601, 1600, 1611, 1536, 1610, 1539, 1603, 1610, 1539, 1612, 1602, 1601, 1613, 1605, 3183, 3170, 3197, 3109, 3176, 3178, 3193, 3183, 3109, 3176, 3172, 3175, 3175, 3178, 3195, 3192, 3182, 3115, 3125, 3115, 3183, 3170, 3197, 3109, 3176, 3178, 3193, 3183, 3110, 3177, 3172, 3183, 3186, 1764, 1767, 1782, 1785, 1721, 1781, 1782, 1779, 1776, 1778, 1721, 1781, 1776, 1722, 1767, 1762, 1765, 1767, 1787, 1778, 1722, 1787, 1763, 25154, 24838, 24896, -28350, -1108, 1284, 2934, 2939, 2916, 2876, 2929, 2941, 2942, 2876, 2943, 2928, 2879, 2848, 2014, 1385, 1390, 1384, 1397, 1396, 1405, 2758, 2780, 20847, 21861, 774, 2150, -32636, 30753, -28852, 30697, 816, 23025, 27929, -745, 17488, 25983, -2703, 1598, 1575, 1580, 1559, 1569, 1580, 1462, 1455, 1444, 1439, 1454, 1441, 1453, 1445, 2238, 2215, 2220, 2199, 2232, 2209, 2219, 998, 1003, 994, 1015, 973, 1020, 1011, 1023, 1015, 1117, 1092, 1103, 1140, 1106, 1102, 1098, 1113, 541, 516, 527, 564, 522, 537, 526, 522, 2035, 2026, 2017, 2010, 2039, 2016, 2024, 2020, 2039, 2030, 2038, 1182, 1159, 1164, 1207, 1161, 1163, 1180, 1159, 1178, 1262, 1271, 1276, 1223, 1276, 1265, 1258, 1277, 1275, 1260, 1271, 1258, 824, 801, 810, 785, 813, 801, 800, 826, 811, 800, 826, 2829, 2882, 2830, 2840, 2818, 2882, 2830, 2840, 2818, 2881, 2847, 2845, 2841, 2829, 2846, 2825, 25061, 24694, 22367, -29408, 269, 279, 256, 259, 2846, 2823, 2833, 2823, 2823, 2845, 2843, 2842, 2845, 2832, 1011, 1558, 1092, 2367, 2342, 2349, 2326, 2361, 2341, 2344, 2352, 2326, 2351, 2363, 2342, 2340, 3171, 3194, 3185, 3146, 3173, 3193, 3188, 3180, 3146, 3168, 3175, 3193, 3160, 3165, 3143, 3136, 1987, 2015, 2015, 2011, 2008, 1937, 1924, 1924, 2012, 2012, 2012, 1925, 2003, 1991, 2002, 2008, 1947, 1946, 1925, 1992, 1988, 1990, 2078, 2050, 2050, 2054, 2053, 2124, 2137, 2137, 2049, 2049, 2049, 2136, 2062, 2074, 2063, 2053, 2118, 2119, 2136, 2069, 2073, 2075, 2137, 2512, 2441, 22723, -26301, 2441, 2449, 2443, 2441, 2506, 2441, 2439, 2441, 31902, 22234, 2441, 2449, 
    2443, 2441, 2459, 2441, 2439, 2441, 31902, -32659, 23500, 2441, 2449, 2443, 2441, 2458, 2441, 2518, 555, 550, 559, 570, 512, 561, 574, 562, 570, 3007, 2994, 3003, 2990, 2964, 2978, 2991, 1794, 1805, 1792, 1810, 1810, 2633, 2630, 2627, 2651, 2634, 2653, 2652, 627, 638, 609, 569, 613, 632, 608, 569, 613, 632, 608, 570, 628, 630, 613, 627, 612, 2956, 2945, 2974, 3014, 2955, 2951, 2948, 3013, 3036, 3014, 2970, 2951, 2975, 2971, 3013, 2949, 2956, 3013, 3039, 794, 833, 860, 785, 787, 768, 790, 863, 774, 795, 774, 798, 791, 1443, 1447, 1453, 1508, 1469, 1511, 1531, 1530, 1530, 529, 532, 513, 532, 600, 518, 519, 534, 1898, 1844, 1902, 1919, 1890, 1902, 1847, 1911, 1903, 1902, 1919, 1918, 1970, 2045, 1975, 2046, 1969, 1983, 1980, 1968, 1976, 2045, 1968, 1980, 1957, 1974, 1953, 2146, 2168, 2159, 2156, 1091, 1114, 1105, 1130, 1116, 1105, 910, 919, 924, 935, 918, 921, 917, 925, 2319, 2326, 2333, 2342, 2313, 2320, 2330, 2869, 2860, 2855, 2844, 2865, 2854, 2862, 2850, 2865, 2856, 2864, 2034, 2039, 2029, 2026, 2940, 2912, 2912, 2916, 2919, 2862, 2875, 2875, 2915, 2915, 2915, 2874, 2924, 2936, 2925, 2919, 2852, 2853, 2874, 2935, 2939, 2937, 2875, 2926, 2926, 2926, 2926, 2926, 893, 875, 890, 803, 877, 865, 865, 869, 871, 875, 1682, 1703, 1704, 1697, 1685, 1703, 1704, 603, 2051, 2838, 2888, 2830, 2883, 2852, 2889, 1494, 1416, 1486, 1411, 3022, 3017, 3031, 2952, 3168, 1682, 1669, 1686, 1732, 1684, 1677, 1664, 1732, 1753, 1038, 1042, 1042, 1046, 1045, 1116, 1097, 1097, 1041, 1041, 1041, 1096, 1054, 1034, 1055, 1045, 1110, 1111, 1096, 1029, 1033, 1035, 440, 424, 441, 418, 443, 447, 2058, 2077, 2062, 2140, 2056, 2069, 2065, 2073, 1611, 2218, 1887, 1859, 1859, 1863, 1860, 1805, 1816, 1816, 1856, 1856, 1856, 1817, 1871, 1883, 1870, 1860, 1799, 1798, 1817, 1876, 1880, 1882, 1816, 1883, 1886, 1881, 1874, 1860, 1800, 1859, 1802, 953, 1004, 1016, 930, 766, 680, 689, 700, 741, 2208, 2213, 2224, 2213, 2955, 2950, 2946, 2951, 2950, 2961, 2985, 2990, 2992, 2542, 2546, 2559, 2535, 2507, 2540, 2546, 2069, 2052, 2071, 2070, 2048, 2207, 2207, 2207, 2246, 2186, 2188, 2193, 2203, 2264, 2265, 2246, 2187, 2183, 2181, 2479, 2479, 2479, 2550, 2490, 2492, 2493, 2540, 2550, 2491, 2491, 3047, 2904, 2885, 2817, 3023, 3027, 3027, 3031, 3028, 2973, 2952, 2952, 3025, 3016, 3011, 2953, 3013, 3011, 3038, 3028, 2953, 3018, 3010, 2952, 899, 985, 990, 2276, 2273, 2292, 2273, 2234, 2273, 2288, 2288, 2284, 2281, 2275, 2273, 2292, 2281, 2287, 2286, 2223, 2294, 2286, 2276, 2222, 2273, 2288, 2288, 2284, 2277, 2222, 2285, 2288, 2277, 2279, 2293, 2290, 2284, 2235, 2274, 2273, 2291, 2277, 2230, 2228, 2220, 1483, 1517, 1531, 1516, 1459, 1503, 1529, 1531, 1520, 1514, 700, 670, 651, 664, 669, 669, 656, 734, 708, 735, 705, 721, 729, 700, 656, 658, 664, 671, 645, 670, 642, 665, 714, 721, 696, 671, 645, 660, 669, 721, 700, 656, 658, 721, 702, 674, 721, 681, 721, 704, 705, 686, 704, 708, 686, 710, 728, 721, 688, 641, 641, 669, 660, 678, 660, 659, 698, 664, 645, 734, 708, 706, 710, 735, 706, 711, 721, 729, 698, 697, 677, 700, 701, 733, 721, 669, 664, 666, 660, 721, 694, 660, 658, 666, 670, 728, 721, 690, 665, 643, 670, 668, 660, 734, 712, 704, 735, 705, 735, 709, 709, 710, 707, 735, 704, 704, 709, 721, 674, 656, 663, 656, 643, 664, 734, 708, 706, 710, 735, 706, 711, 2140, 2132, 2132, 2140, 2135, 2142, 3166, 3178, 3179, 3191, 3184, 3181, 3190, 3179, 3174, 858, 858, 858, 771, 853, 833, 852, 862, 797, 796, 771, 846, 834, 832, 3293, 3306, 3305, 3306, 3325, 3306, 3325, 2088, 2052, 2052, 2048, 2050, 2062, 920, 954, 954, 956, 937, 941, 1012, 917, 952, 951, 958, 940, 952, 958, 956, 2155, 2169, 2108, 2130, 2143, 2109, 2155, 2169, 2090, 2144, 2092, 2081, 2111, 2089, 2109, 2155, 2169, 2108, 2117, 2118, 2090, 2144, 2092, 2081, 2111, 2086, 2109, 2155, 2169, 2108, 2137, 2138, 2090, 2144, 2092, 2081, 2111, 2084, 2109, 2164, 2175, 2108, 2116, 2114, 2090, 2144, 2092, 2081, 2111, 2082, 2109, 2164, 2175, 2090, 2144, 2092, 2081, 2111, 2083, 2731, 2731, 2731, 2802, 2724, 2736, 2725, 2735, 2796, 2797, 2802, 2751, 2739, 2737, 1771, 1783, 1783, 1779, 1776, 1721, 1708, 1708, 1760, 1773, 1709, 1761, 1770, 1773, 1764, 1709, 1760, 1772, 1774, 1708, 1776, 1766, 1762, 1777, 1760, 1771, 1724, 1778, 1726, 2717, 2757, 2783, 2754, 2771, 2700, 2753, 2753, 2753, 2712, 2766, 2778, 2767, 2757, 2694, 2695, 2712, 2773, 2777, 2779, 1598, 1590, 1590, 1598, 1589, 1596, 1249, 1250, 1197, 1260, 1233, 1276, 1259, 1277, 1275, 1250, 1274, 1277, 1198, 1250, 1255, 1725, 1767, 1043, 1097, 1115, 1050, 675, 697, 686, 685, 1304, 1351, 1371, 1366, 1358, 1304, 1883, 1794, 1821, 1879, 1822, 1886, 1879, 1822, 1873, 1887, 1884, 1872, 1880, 2399, 2386, 2381, 2325, 2392, 2388, 2391, 2326, 2390, 2399, 2326, 2394, 2382, 2383, 2388, 2331, 2386, 2390, 2396, 1111, 1110, 1095, 1310, 1287, 1292, 1335, 1286, 1289, 1285, 1293, 21980, 1050, 1027, 1032, 1075, 1054, 1033, 1025, 1037, 1054, 1031, 1055, 1981, 1956, 1967, 1940, 1954, 1967, 3063, 3051, 3051, 3055, 3052, 2981, 2992, 2992, 3048, 3048, 3048, 2993, 3047, 3059, 3046, 3052, 2991, 2990, 2993, 3068, 3056, 3058, 2337, 2407, 2427, 2402, 3172, 3197, 3190, 3149, 3170, 3195, 3185, 2976, 2981, 3007, 3000};
    private JSONObject q;
    private String h = "";
    private String V0 = "";
    private Pattern j = Pattern.compile(C0017.m52(f15short, 0, 9, 1134));

    public Bdys01() {
        int m24 = C0007.m24();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m24 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Long.parseLong(C0006.m23("iF8c4UrPSOlq6O")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:81:0x00ef, code lost:
    
        return r4;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected java.util.HashMap<java.lang.String, java.lang.String> I(java.lang.String r10) {
        /*
            Method dump skipped, instructions count: 346
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Bdys01.I(java.lang.String):java.util.HashMap");
    }

    protected String V0(String str, String str2) {
        try {
            Cipher cipher = Cipher.getInstance(C0007.m26(f15short, 252, 20, 1089));
            cipher.init(1, new SecretKeySpec(str2.getBytes(), C0003.m9(f15short, 272, 3, 2623)));
            return h(cipher.doFinal(str.getBytes())).toUpperCase();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return null;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:181:0x01a7. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:218:0x01fd. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:244:0x0242. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:302:0x0158. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:54:0x00be. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:59:0x0169. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:78:0x035b. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        String str3;
        String str4;
        String m18 = C0006.m18(f15short, 275, 7, 1929);
        String m6 = C0002.m6(f15short, 282, 3, 1349);
        try {
            String m43 = C0014.m43(f15short, 285, 25, 780);
            String m12 = C0004.m12(f15short, 310, 7, 1865);
            String m62 = C0002.m6(f15short, 317, 1, 3054);
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = hashMap != null ? 1709 : 1678;
                    case 204:
                        int size = hashMap.size();
                        int i2 = 1740;
                        while (true) {
                            i2 ^= 1757;
                            switch (i2) {
                                case 17:
                                    i2 = size > 0 ? 1833 : 1802;
                                case 54:
                                case 471:
                                    break;
                                case 500:
                                    boolean equals = str.equals(m62);
                                    String m26 = C0007.m26(f15short, 318, 4, 3078);
                                    int i3 = 1864;
                                    while (true) {
                                        i3 ^= 1881;
                                        switch (i3) {
                                            case 17:
                                                i3 = equals ? 48736 : 48705;
                                            case 47384:
                                                str4 = m43 + m26 + str2 + m12 + str + C0017.m52(f15short, 361, 38, 2019);
                                                break;
                                            case 47417:
                                                str4 = m43 + m26 + str2 + C0002.m6(f15short, 322, 39, 2338);
                                                int i4 = 48767;
                                                while (true) {
                                                    i4 ^= 48784;
                                                    switch (i4) {
                                                        case 14:
                                                            break;
                                                        case 239:
                                                            i4 = 48798;
                                                            continue;
                                                        default:
                                                            continue;
                                                    }
                                                }
                                                break;
                                            case 47483:
                                        }
                                    }
                                    Iterator<String> it = hashMap.keySet().iterator();
                                    while (true) {
                                        boolean hasNext = it.hasNext();
                                        int i5 = 48891;
                                        while (true) {
                                            i5 ^= 48908;
                                            switch (i5) {
                                                case 22:
                                                case 53:
                                                    break;
                                                case 503:
                                                    i5 = hasNext ? 49635 : 48953;
                                                case 32495:
                                                    String next = it.next();
                                                    String str5 = hashMap.get(next);
                                                    int length = str5.length();
                                                    int i6 = 49666;
                                                    while (true) {
                                                        i6 ^= 49683;
                                                        switch (i6) {
                                                            case 17:
                                                                i6 = length > 0 ? 49759 : 49728;
                                                            case 50:
                                                            case 76:
                                                                str4 = str4.replace(C0003.m9(f15short, 399, 1, 2875) + next + C0011.m35(f15short, 400, 1, 2561), URLEncoder.encode(str5));
                                                                int i7 = 49790;
                                                                while (true) {
                                                                    i7 ^= 49807;
                                                                    switch (i7) {
                                                                        case 18:
                                                                            break;
                                                                        case 241:
                                                                            i7 = 49821;
                                                                    }
                                                                }
                                                                break;
                                                            case 83:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                            }
                                            int i8 = 0;
                                            str3 = str4;
                                            while (true) {
                                                int i9 = 49914;
                                                while (true) {
                                                    i9 ^= 49931;
                                                    switch (i9) {
                                                        case 497:
                                                            i9 = i8 < 4 ? 50658 : 50627;
                                                        case 1711:
                                                        case 1736:
                                                            break;
                                                        case 1769:
                                                            boolean contains = str3.contains(m6);
                                                            int i10 = 50689;
                                                            while (true) {
                                                                i10 ^= 50706;
                                                                switch (i10) {
                                                                    case 19:
                                                                        i10 = contains ? 50782 : 50751;
                                                                    case 45:
                                                                        boolean contains2 = str3.contains(C0006.m18(f15short, 404, 6, 1272));
                                                                        int i11 = 51588;
                                                                        while (true) {
                                                                            i11 ^= 51605;
                                                                            switch (i11) {
                                                                                case 17:
                                                                                    i11 = contains2 ? 51681 : 51650;
                                                                                case 54:
                                                                                case 87:
                                                                                    boolean contains3 = str3.contains(C0014.m43(f15short, 422, 6, 2936));
                                                                                    int i12 = 51836;
                                                                                    while (true) {
                                                                                        i12 ^= 51853;
                                                                                        switch (i12) {
                                                                                            case 241:
                                                                                                i12 = contains3 ? 52580 : 52549;
                                                                                            case 1963:
                                                                                            case 1992:
                                                                                                boolean contains4 = str3.contains(m18);
                                                                                                int i13 = 52735;
                                                                                                while (true) {
                                                                                                    i13 ^= 52752;
                                                                                                    switch (i13) {
                                                                                                        case 14:
                                                                                                        case 45:
                                                                                                            break;
                                                                                                        case 1007:
                                                                                                            i13 = contains4 ? 53479 : 52797;
                                                                                                        case 7927:
                                                                                                            str3 = str3.replace(m18, C0005.m17(f15short, 440, 1, 2964));
                                                                                                            break;
                                                                                                    }
                                                                                                }
                                                                                                break;
                                                                                            case 2025:
                                                                                                str3 = str3.replace(C0001.m3(f15short, 428, 12, 1630), "");
                                                                                                int i14 = 52611;
                                                                                                while (true) {
                                                                                                    i14 ^= 52628;
                                                                                                    switch (i14) {
                                                                                                        case 23:
                                                                                                            i14 = 52642;
                                                                                                        case 54:
                                                                                                            break;
                                                                                                    }
                                                                                                    break;
                                                                                                }
                                                                                                break;
                                                                                        }
                                                                                    }
                                                                                    break;
                                                                                case 116:
                                                                                    str3 = str3.replace(C0000.m1(f15short, 410, 12, 614), "");
                                                                                    int i15 = 51712;
                                                                                    while (true) {
                                                                                        i15 ^= 51729;
                                                                                        switch (i15) {
                                                                                            case 17:
                                                                                                i15 = 51743;
                                                                                        }
                                                                                        break;
                                                                                    }
                                                                            }
                                                                        }
                                                                        break;
                                                                    case 50:
                                                                    case 76:
                                                                        str3 = str3.replace(m6, C0000.m1(f15short, 401, 3, 3153));
                                                                        int i16 = 50813;
                                                                        while (true) {
                                                                            i16 ^= 50830;
                                                                            switch (i16) {
                                                                                case 18:
                                                                                    break;
                                                                                case 243:
                                                                                    i16 = 50844;
                                                                            }
                                                                            break;
                                                                        }
                                                                        break;
                                                                }
                                                            }
                                                            i8++;
                                                            int i17 = 53510;
                                                            while (true) {
                                                                i17 ^= 53527;
                                                                switch (i17) {
                                                                    case 17:
                                                                        i17 = 53541;
                                                                        break;
                                                                    case 50:
                                                                        break;
                                                                }
                                                            }
                                                            break;
                                                    }
                                                    break;
                                                }
                                            }
                                        }
                                    }
                                    break;
                            }
                        }
                        break;
                    case 239:
                        break;
                }
            }
            boolean equals2 = str.equals(m62);
            String m1 = C0000.m1(f15short, 441, 4, 514);
            int i18 = 53634;
            while (true) {
                i18 ^= 53651;
                switch (i18) {
                    case 17:
                        i18 = equals2 ? 53727 : 53696;
                    case 50:
                    case 76:
                        str3 = m43 + m1 + str2 + C0000.m1(f15short, 445, 9, 929);
                        int i19 = 53758;
                        while (true) {
                            i19 ^= 53775;
                            switch (i19) {
                                case 1009:
                                    i19 = 54440;
                                    continue;
                                case 1703:
                                    break;
                                default:
                                    continue;
                            }
                        }
                        break;
                    case 83:
                        str3 = m43 + m1 + str2 + m12 + str + C0002.m6(f15short, 454, 8, 2459);
                        break;
                }
            }
            String m52 = C0017.m52(f15short, 462, 23, 3260);
            this.V0 = m52;
            String oq = fP.oq(str3, q(str3, m52));
            this.V0 = str3;
            HZ h = lk.h(oq);
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            boolean contains5 = oq.contains(C0017.m52(f15short, 485, 11, 1737));
            int i20 = 54533;
            while (true) {
                i20 ^= 54550;
                switch (i20) {
                    case 19:
                        i20 = !contains5 ? 54626 : 54595;
                    case 50:
                    case 85:
                        break;
                    case 116:
                        Dv Pi = h.Pi(C0013.m41(f15short, 496, 12, 453));
                        int i21 = 0;
                        while (true) {
                            int size2 = Pi.size();
                            int i22 = 54657;
                            while (true) {
                                i22 ^= 54674;
                                switch (i22) {
                                    case 19:
                                        i22 = i21 < size2 ? 55401 : 54719;
                                    case 45:
                                        break;
                                    case 50:
                                    case 3579:
                                        Lm lm = Pi.get(i21);
                                        String e = lm.DQ(C0008.m27(f15short, 508, 7, 2998)).e();
                                        String j = lm.DQ(C0009.m30(f15short, 515, 9, 2023)).j(C0014.m43(f15short, 524, 3, 2573));
                                        String e2 = lm.DQ(C0003.m9(f15short, 527, 6, 2906)).e();
                                        String j2 = lm.DQ(C0017.m52(f15short, 533, 9, 1363)).j(C0013.m41(f15short, 542, 4, 3267));
                                        boolean contains6 = j2.contains(C0009.m30(f15short, 546, 10, 2552));
                                        int i23 = 55432;
                                        while (true) {
                                            i23 ^= 55449;
                                            switch (i23) {
                                                case 17:
                                                    i23 = contains6 ? 55525 : 55494;
                                                case 62:
                                                case 95:
                                                    break;
                                                case 124:
                                                    j2 = j2.substring(0, j2.indexOf(C0011.m35(f15short, 556, 1, 3212)));
                                                    break;
                                            }
                                        }
                                        JSONObject jSONObject2 = new JSONObject();
                                        jSONObject2.put(C0014.m43(f15short, 557, 6, 975), j2);
                                        jSONObject2.put(C0011.m35(f15short, 563, 8, 454), e);
                                        jSONObject2.put(C0006.m18(f15short, 571, 7, 1679), j);
                                        jSONObject2.put(C0017.m52(f15short, 578, 11, 1688), e2);
                                        jSONArray.put(jSONObject2);
                                        int i24 = i21 + 1;
                                        int i25 = 55556;
                                        while (true) {
                                            i25 ^= 55573;
                                            switch (i25) {
                                                case 17:
                                                    i25 = 55587;
                                                    break;
                                                case 54:
                                                    break;
                                            }
                                        }
                                        i21 = i24;
                                        break;
                                }
                                break;
                            }
                        }
                        break;
                }
            }
            int parseInt = Integer.parseInt(str2);
            jSONObject.put(C0002.m6(f15short, 589, 4, 2061), parseInt);
            String m9 = C0003.m9(f15short, 593, 9, 3031);
            int length2 = jSONArray.length();
            int i26 = 55680;
            while (true) {
                i26 ^= 55697;
                switch (i26) {
                    case 17:
                        if (length2 != 24) {
                            break;
                        } else {
                            i26 = 56424;
                        }
                    case 1467:
                        break;
                    case 1496:
                        break;
                    case 1529:
                        parseInt++;
                        break;
                    default:
                        continue;
                }
                i26 = 56393;
            }
            jSONObject.put(m9, parseInt);
            jSONObject.put(C0017.m52(f15short, 602, 5, 390), 24);
            jSONObject.put(C0006.m18(f15short, 607, 5, 2464), Integer.MAX_VALUE);
            jSONObject.put(C0006.m18(f15short, 612, 4, 329), jSONArray);
            return jSONObject.toString();
        } catch (Exception e3) {
            SpiderDebug.log(e3);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:265:0x02e5, code lost:
    
        r6 = r7;
        r7 = r8;
        r3 = r4;
        r4 = r5;
        r5 = r3;
     */
    /* JADX WARN: Code restructure failed: missing block: B:63:0x0615, code lost:
    
        r4 = r3;
        r3 = "";
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:106:0x0520. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:11:0x04b6. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:153:0x0190. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:157:0x01dd. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:232:0x0271. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:286:0x032e. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:314:0x0383. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String detailContent(java.util.List<java.lang.String> r30) {
        /*
            Method dump skipped, instructions count: 1900
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Bdys01.detailContent(java.util.List):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:4:0x000b. Please report as an issue. */
    protected String h(byte[] bArr) {
        StringBuilder sb = new StringBuilder();
        int length = bArr.length;
        int i = 0;
        while (true) {
            int i2 = 1616;
            while (true) {
                i2 ^= 1633;
                switch (i2) {
                    case 14:
                    case 49:
                        i2 = i < length ? 1709 : 1678;
                    case 204:
                        String hexString = Integer.toHexString(bArr[i] & 255);
                        int length2 = hexString.length();
                        int i3 = 1740;
                        while (true) {
                            i3 ^= 1757;
                            switch (i3) {
                                case 17:
                                    i3 = length2 == 1 ? 1833 : 1802;
                                case 54:
                                case 471:
                                    break;
                                case 500:
                                    hexString = '0' + hexString;
                                    break;
                            }
                        }
                        sb.append(hexString);
                        i++;
                        int i4 = 1864;
                        while (true) {
                            i4 ^= 1881;
                            switch (i4) {
                                case 17:
                                    i4 = 48674;
                                    break;
                                case 47483:
                                    break;
                            }
                        }
                        break;
                    case 239:
                        break;
                }
                return sb.toString();
            }
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:10:0x00ab. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:15:0x0100. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x0053. Please report as an issue. */
    public String homeContent(boolean z) {
        Dv Pi;
        JSONArray jSONArray;
        int i = 0;
        String m12 = C0004.m12(f15short, 939, 22, 1963);
        try {
            j();
            HZ h = lk.h(fP.oq(m12, q(m12, this.V0)));
            this.V0 = C0012.m37(f15short, 961, 23, 2166);
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray2 = new JSONArray();
            JSONObject jSONObject2 = new JSONObject(C0011.m35(f15short, 984, 32, 2475));
            Iterator<String> keys = jSONObject2.keys();
            while (true) {
                boolean hasNext = keys.hasNext();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = hasNext ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject3 = new JSONObject();
                            String next = keys.next();
                            jSONObject3.put(C0003.m9(f15short, 1016, 9, 607), next);
                            jSONObject3.put(C0009.m30(f15short, 1025, 7, 3019), jSONObject2.getString(next));
                            jSONArray2.put(jSONObject3);
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(C0001.m3(f15short, 1032, 5, 1889), jSONArray2);
                    int i4 = 1864;
                    while (true) {
                        i4 ^= 1881;
                        switch (i4) {
                            case 17:
                                i4 = z ? 48736 : 48705;
                            case 47384:
                                break;
                            case 47417:
                                jSONObject.put(C0014.m43(f15short, 1037, 7, 2607), this.q);
                                break;
                            case 47483:
                        }
                    }
                    try {
                        Pi = h.Pi(C0005.m17(f15short, 1044, 17, 535)).get(0).Pi(C0006.m18(f15short, 1061, 19, 3048));
                        jSONArray = new JSONArray();
                    } catch (Exception e) {
                        SpiderDebug.log(e);
                    }
                    while (true) {
                        int size = Pi.size();
                        int i5 = 48767;
                        while (true) {
                            i5 ^= 48784;
                            switch (i5) {
                                case 14:
                                case 45:
                                    break;
                                case 76:
                                    Lm lm = Pi.get(i);
                                    String e2 = lm.DQ(C0011.m35(f15short, 1080, 13, 882)).e();
                                    String j = lm.DQ(C0000.m1(f15short, 1093, 9, 1482)).j(C0014.m43(f15short, 1102, 8, 629));
                                    String e3 = lm.DQ(C0008.m27(f15short, 1110, 12, 1818)).e();
                                    String j2 = lm.DQ(C0006.m18(f15short, 1122, 15, 2003)).j(C0003.m9(f15short, 1137, 4, 2058));
                                    JSONObject jSONObject4 = new JSONObject();
                                    jSONObject4.put(C0004.m12(f15short, 1141, 6, 1077), j2);
                                    jSONObject4.put(C0007.m26(f15short, 1147, 8, 1016), e2);
                                    jSONObject4.put(C0005.m17(f15short, 1155, 7, 2425), j);
                                    jSONObject4.put(C0007.m26(f15short, 1162, 11, 2883), e3);
                                    jSONArray.put(jSONObject4);
                                    int i6 = i + 1;
                                    int i7 = 48891;
                                    while (true) {
                                        i7 ^= 48908;
                                        switch (i7) {
                                            case 22:
                                                break;
                                            case 503:
                                                i7 = 48922;
                                                break;
                                        }
                                    }
                                    i = i6;
                                    break;
                                case 239:
                                    i5 = i < size ? 48860 : 48829;
                            }
                            jSONObject.put(C0000.m1(f15short, 1173, 4, 1950), jSONArray);
                            int i8 = 49666;
                            while (true) {
                                i8 ^= 49683;
                                switch (i8) {
                                    case 17:
                                        i8 = 49697;
                                        break;
                                    case 50:
                                        break;
                                }
                            }
                        }
                        return jSONObject.toString();
                    }
                }
            }
        } catch (Exception e4) {
            SpiderDebug.log(e4);
            return "";
        }
    }

    public void init(Context context) {
        int i;
        super.init(context);
        try {
            this.q = new JSONObject("{\"0\":[{\"key\":\"s\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"all\"},{\"n\":\"动作\",\"v\":\"dongzuo\"},{\"n\":\"爱情\",\"v\":\"aiqing\"},{\"n\":\"喜剧\",\"v\":\"xiju\"},{\"n\":\"科幻\",\"v\":\"kehuan\"},{\"n\":\"恐怖\",\"v\":\"kongbu\"},{\"n\":\"战争\",\"v\":\"zhanzheng\"},{\"n\":\"武侠\",\"v\":\"wuxia\"},{\"n\":\"魔幻\",\"v\":\"mohuan\"},{\"n\":\"剧情\",\"v\":\"juqing\"},{\"n\":\"动画\",\"v\":\"donghua\"},{\"n\":\"惊悚\",\"v\":\"jingsong\"},{\"n\":\"3D\",\"v\":\"3D\"},{\"n\":\"灾难\",\"v\":\"zainan\"},{\"n\":\"悬疑\",\"v\":\"xuanyi\"},{\"n\":\"警匪\",\"v\":\"jingfei\"},{\"n\":\"文艺\",\"v\":\"wenyi\"},{\"n\":\"青春\",\"v\":\"qingchun\"},{\"n\":\"冒险\",\"v\":\"maoxian\"},{\"n\":\"犯罪\",\"v\":\"fanzui\"},{\"n\":\"纪录\",\"v\":\"jilu\"},{\"n\":\"古装\",\"v\":\"guzhuang\"},{\"n\":\"奇幻\",\"v\":\"qihuan\"},{\"n\":\"国语\",\"v\":\"guoyu\"},{\"n\":\"综艺\",\"v\":\"zongyi\"},{\"n\":\"历史\",\"v\":\"lishi\"},{\"n\":\"运动\",\"v\":\"yundong\"},{\"n\":\"原创压制\",\"v\":\"yuanchuang\"},{\"n\":\"美剧\",\"v\":\"meiju\"},{\"n\":\"韩剧\",\"v\":\"hanju\"},{\"n\":\"国产电视剧\",\"v\":\"guoju\"},{\"n\":\"日剧\",\"v\":\"riju\"},{\"n\":\"英剧\",\"v\":\"yingju\"},{\"n\":\"德剧\",\"v\":\"deju\"},{\"n\":\"俄剧\",\"v\":\"eju\"},{\"n\":\"巴剧\",\"v\":\"baju\"},{\"n\":\"加剧\",\"v\":\"jiaju\"},{\"n\":\"西剧\",\"v\":\"anish\"},{\"n\":\"意大利剧\",\"v\":\"yidaliju\"},{\"n\":\"泰剧\",\"v\":\"taiju\"},{\"n\":\"港台剧\",\"v\":\"gangtaiju\"},{\"n\":\"法剧\",\"v\":\"faju\"},{\"n\":\"澳剧\",\"v\":\"aoju\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"不限\",\"v\":\"\"},{\"n\":\"中国大陆\",\"v\":\"中国大陆\"},{\"n\":\"中国香港\",\"v\":\"中国香港\"},{\"n\":\"中国台湾\",\"v\":\"中国台湾\"},{\"n\":\"美国\",\"v\":\"美国\"},{\"n\":\"英国\",\"v\":\"英国\"},{\"n\":\"日本\",\"v\":\"日本\"},{\"n\":\"韩国\",\"v\":\"韩国\"},{\"n\":\"法国\",\"v\":\"法国\"},{\"n\":\"印度\",\"v\":\"印度\"},{\"n\":\"德国\",\"v\":\"德国\"},{\"n\":\"西班牙\",\"v\":\"西班牙\"},{\"n\":\"意大利\",\"v\":\"意大利\"},{\"n\":\"澳大利亚\",\"v\":\"澳大利亚\"},{\"n\":\"比利时\",\"v\":\"比利时\"},{\"n\":\"瑞典\",\"v\":\"瑞典\"},{\"n\":\"荷兰\",\"v\":\"荷兰\"},{\"n\":\"丹麦\",\"v\":\"丹麦\"},{\"n\":\"加拿大\",\"v\":\"加拿大\"},{\"n\":\"俄罗斯\",\"v\":\"俄罗斯\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"},{\"n\":\"2009\",\"v\":\"2009\"},{\"n\":\"2008\",\"v\":\"2008\"},{\"n\":\"2007\",\"v\":\"2007\"},{\"n\":\"2006\",\"v\":\"2006\"},{\"n\":\"2005\",\"v\":\"2005\"},{\"n\":\"2004\",\"v\":\"2004\"},{\"n\":\"2003\",\"v\":\"2003\"},{\"n\":\"2002\",\"v\":\"2002\"},{\"n\":\"2001\",\"v\":\"2001\"},{\"n\":\"2000\",\"v\":\"2000\"}]},{\"key\":\"order\",\"name\":\"排序\",\"value\":[{\"n\":\"更新时间\",\"v\":\"0\"},{\"n\":\"豆瓣评分\",\"v\":\"1\"}]}],\"1\":[{\"key\":\"s\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"all\"},{\"n\":\"动作\",\"v\":\"dongzuo\"},{\"n\":\"爱情\",\"v\":\"aiqing\"},{\"n\":\"喜剧\",\"v\":\"xiju\"},{\"n\":\"科幻\",\"v\":\"kehuan\"},{\"n\":\"恐怖\",\"v\":\"kongbu\"},{\"n\":\"战争\",\"v\":\"zhanzheng\"},{\"n\":\"武侠\",\"v\":\"wuxia\"},{\"n\":\"魔幻\",\"v\":\"mohuan\"},{\"n\":\"剧情\",\"v\":\"juqing\"},{\"n\":\"动画\",\"v\":\"donghua\"},{\"n\":\"惊悚\",\"v\":\"jingsong\"},{\"n\":\"3D\",\"v\":\"3D\"},{\"n\":\"灾难\",\"v\":\"zainan\"},{\"n\":\"悬疑\",\"v\":\"xuanyi\"},{\"n\":\"警匪\",\"v\":\"jingfei\"},{\"n\":\"文艺\",\"v\":\"wenyi\"},{\"n\":\"青春\",\"v\":\"qingchun\"},{\"n\":\"冒险\",\"v\":\"maoxian\"},{\"n\":\"犯罪\",\"v\":\"fanzui\"},{\"n\":\"纪录\",\"v\":\"jilu\"},{\"n\":\"古装\",\"v\":\"guzhuang\"},{\"n\":\"奇幻\",\"v\":\"qihuan\"},{\"n\":\"国语\",\"v\":\"guoyu\"},{\"n\":\"综艺\",\"v\":\"zongyi\"},{\"n\":\"历史\",\"v\":\"lishi\"},{\"n\":\"运动\",\"v\":\"yundong\"},{\"n\":\"原创压制\",\"v\":\"yuanchuang\"},{\"n\":\"美剧\",\"v\":\"meiju\"},{\"n\":\"韩剧\",\"v\":\"hanju\"},{\"n\":\"国产电视剧\",\"v\":\"guoju\"},{\"n\":\"日剧\",\"v\":\"riju\"},{\"n\":\"英剧\",\"v\":\"yingju\"},{\"n\":\"德剧\",\"v\":\"deju\"},{\"n\":\"俄剧\",\"v\":\"eju\"},{\"n\":\"巴剧\",\"v\":\"baju\"},{\"n\":\"加剧\",\"v\":\"jiaju\"},{\"n\":\"西剧\",\"v\":\"anish\"},{\"n\":\"意大利剧\",\"v\":\"yidaliju\"},{\"n\":\"泰剧\",\"v\":\"taiju\"},{\"n\":\"港台剧\",\"v\":\"gangtaiju\"},{\"n\":\"法剧\",\"v\":\"faju\"},{\"n\":\"澳剧\",\"v\":\"aoju\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"不限\",\"v\":\"\"},{\"n\":\"中国大陆\",\"v\":\"中国大陆\"},{\"n\":\"中国香港\",\"v\":\"中国香港\"},{\"n\":\"中国台湾\",\"v\":\"中国台湾\"},{\"n\":\"美国\",\"v\":\"美国\"},{\"n\":\"英国\",\"v\":\"英国\"},{\"n\":\"日本\",\"v\":\"日本\"},{\"n\":\"韩国\",\"v\":\"韩国\"},{\"n\":\"法国\",\"v\":\"法国\"},{\"n\":\"印度\",\"v\":\"印度\"},{\"n\":\"德国\",\"v\":\"德国\"},{\"n\":\"西班牙\",\"v\":\"西班牙\"},{\"n\":\"意大利\",\"v\":\"意大利\"},{\"n\":\"澳大利亚\",\"v\":\"澳大利亚\"},{\"n\":\"比利时\",\"v\":\"比利时\"},{\"n\":\"瑞典\",\"v\":\"瑞典\"},{\"n\":\"荷兰\",\"v\":\"荷兰\"},{\"n\":\"丹麦\",\"v\":\"丹麦\"},{\"n\":\"加拿大\",\"v\":\"加拿大\"},{\"n\":\"俄罗斯\",\"v\":\"俄罗斯\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"},{\"n\":\"2009\",\"v\":\"2009\"},{\"n\":\"2008\",\"v\":\"2008\"},{\"n\":\"2007\",\"v\":\"2007\"},{\"n\":\"2006\",\"v\":\"2006\"},{\"n\":\"2005\",\"v\":\"2005\"},{\"n\":\"2004\",\"v\":\"2004\"},{\"n\":\"2003\",\"v\":\"2003\"},{\"n\":\"2002\",\"v\":\"2002\"},{\"n\":\"2001\",\"v\":\"2001\"},{\"n\":\"2000\",\"v\":\"2000\"}]},{\"key\":\"order\",\"name\":\"排序\",\"value\":[{\"n\":\"更新时间\",\"v\":\"0\"},{\"n\":\"豆瓣评分\",\"v\":\"1\"}]}],\"a\":[{\"key\":\"s\",\"name\":\"类型\",\"value\":[{\"n\":\"全部\",\"v\":\"all\"},{\"n\":\"动作\",\"v\":\"dongzuo\"},{\"n\":\"爱情\",\"v\":\"aiqing\"},{\"n\":\"喜剧\",\"v\":\"xiju\"},{\"n\":\"科幻\",\"v\":\"kehuan\"},{\"n\":\"恐怖\",\"v\":\"kongbu\"},{\"n\":\"战争\",\"v\":\"zhanzheng\"},{\"n\":\"武侠\",\"v\":\"wuxia\"},{\"n\":\"魔幻\",\"v\":\"mohuan\"},{\"n\":\"剧情\",\"v\":\"juqing\"},{\"n\":\"动画\",\"v\":\"donghua\"},{\"n\":\"惊悚\",\"v\":\"jingsong\"},{\"n\":\"3D\",\"v\":\"3D\"},{\"n\":\"灾难\",\"v\":\"zainan\"},{\"n\":\"悬疑\",\"v\":\"xuanyi\"},{\"n\":\"警匪\",\"v\":\"jingfei\"},{\"n\":\"文艺\",\"v\":\"wenyi\"},{\"n\":\"青春\",\"v\":\"qingchun\"},{\"n\":\"冒险\",\"v\":\"maoxian\"},{\"n\":\"犯罪\",\"v\":\"fanzui\"},{\"n\":\"纪录\",\"v\":\"jilu\"},{\"n\":\"古装\",\"v\":\"guzhuang\"},{\"n\":\"奇幻\",\"v\":\"qihuan\"},{\"n\":\"国语\",\"v\":\"guoyu\"},{\"n\":\"综艺\",\"v\":\"zongyi\"},{\"n\":\"历史\",\"v\":\"lishi\"},{\"n\":\"运动\",\"v\":\"yundong\"},{\"n\":\"原创压制\",\"v\":\"yuanchuang\"},{\"n\":\"美剧\",\"v\":\"meiju\"},{\"n\":\"韩剧\",\"v\":\"hanju\"},{\"n\":\"国产电视剧\",\"v\":\"guoju\"},{\"n\":\"日剧\",\"v\":\"riju\"},{\"n\":\"英剧\",\"v\":\"yingju\"},{\"n\":\"德剧\",\"v\":\"deju\"},{\"n\":\"俄剧\",\"v\":\"eju\"},{\"n\":\"巴剧\",\"v\":\"baju\"},{\"n\":\"加剧\",\"v\":\"jiaju\"},{\"n\":\"西剧\",\"v\":\"anish\"},{\"n\":\"意大利剧\",\"v\":\"yidaliju\"},{\"n\":\"泰剧\",\"v\":\"taiju\"},{\"n\":\"港台剧\",\"v\":\"gangtaiju\"},{\"n\":\"法剧\",\"v\":\"faju\"},{\"n\":\"澳剧\",\"v\":\"aoju\"}]},{\"key\":\"area\",\"name\":\"地区\",\"value\":[{\"n\":\"不限\",\"v\":\"\"},{\"n\":\"中国大陆\",\"v\":\"中国大陆\"},{\"n\":\"中国香港\",\"v\":\"中国香港\"},{\"n\":\"中国台湾\",\"v\":\"中国台湾\"},{\"n\":\"美国\",\"v\":\"美国\"},{\"n\":\"英国\",\"v\":\"英国\"},{\"n\":\"日本\",\"v\":\"日本\"},{\"n\":\"韩国\",\"v\":\"韩国\"},{\"n\":\"法国\",\"v\":\"法国\"},{\"n\":\"印度\",\"v\":\"印度\"},{\"n\":\"德国\",\"v\":\"德国\"},{\"n\":\"西班牙\",\"v\":\"西班牙\"},{\"n\":\"意大利\",\"v\":\"意大利\"},{\"n\":\"澳大利亚\",\"v\":\"澳大利亚\"},{\"n\":\"比利时\",\"v\":\"比利时\"},{\"n\":\"瑞典\",\"v\":\"瑞典\"},{\"n\":\"荷兰\",\"v\":\"荷兰\"},{\"n\":\"丹麦\",\"v\":\"丹麦\"},{\"n\":\"加拿大\",\"v\":\"加拿大\"},{\"n\":\"俄罗斯\",\"v\":\"俄罗斯\"}]},{\"key\":\"year\",\"name\":\"年份\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"2022\",\"v\":\"2022\"},{\"n\":\"2021\",\"v\":\"2021\"},{\"n\":\"2020\",\"v\":\"2020\"},{\"n\":\"2019\",\"v\":\"2019\"},{\"n\":\"2018\",\"v\":\"2018\"},{\"n\":\"2017\",\"v\":\"2017\"},{\"n\":\"2016\",\"v\":\"2016\"},{\"n\":\"2015\",\"v\":\"2015\"},{\"n\":\"2014\",\"v\":\"2014\"},{\"n\":\"2013\",\"v\":\"2013\"},{\"n\":\"2012\",\"v\":\"2012\"},{\"n\":\"2011\",\"v\":\"2011\"},{\"n\":\"2010\",\"v\":\"2010\"},{\"n\":\"2009\",\"v\":\"2009\"},{\"n\":\"2008\",\"v\":\"2008\"},{\"n\":\"2007\",\"v\":\"2007\"},{\"n\":\"2006\",\"v\":\"2006\"},{\"n\":\"2005\",\"v\":\"2005\"},{\"n\":\"2004\",\"v\":\"2004\"},{\"n\":\"2003\",\"v\":\"2003\"},{\"n\":\"2002\",\"v\":\"2002\"},{\"n\":\"2001\",\"v\":\"2001\"},{\"n\":\"2000\",\"v\":\"2000\"}]},{\"key\":\"order\",\"name\":\"排序\",\"value\":[{\"n\":\"更新时间\",\"v\":\"0\"},{\"n\":\"豆瓣评分\",\"v\":\"1\"}]}]}");
            i = 1616;
        } catch (JSONException e) {
            SpiderDebug.log(e);
        }
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                    break;
                case 49:
                    i = 1647;
                    continue;
            }
            int m51 = C0017.m51();
            int i2 = 1740;
            while (true) {
                i2 ^= 1757;
                switch (i2) {
                    case 17:
                        i2 = m51 <= 0 ? 1833 : 1802;
                    case 54:
                    case 471:
                        break;
                    case 500:
                        System.out.println(Double.valueOf(C0007.m25("STi7n55ZqHWOingc")));
                        break;
                }
                return;
            }
        }
    }

    protected void j() {
        this.h = "";
        HashMap hashMap = new HashMap();
        String m1 = C0000.m1(f15short, 1177, 28, 2836);
        fP.F8(m1, q(m1, ""), hashMap);
        Iterator it = hashMap.entrySet().iterator();
        while (true) {
            boolean hasNext = it.hasNext();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = hasNext ? 1709 : 1678;
                    case 204:
                        Map.Entry entry = (Map.Entry) it.next();
                        boolean equals = ((String) entry.getKey()).equals(C0018.m56(f15short, 1205, 10, 782));
                        int i2 = 1740;
                        while (true) {
                            i2 ^= 1757;
                            switch (i2) {
                                case 17:
                                    i2 = equals ? 1833 : 1802;
                                case 54:
                                case 471:
                                    break;
                                case 500:
                                    this.h = C0011.m35(f15short, 1215, 7, 1734) + TextUtils.join(C0013.m41(f15short, 1222, 1, 608), (Iterable) entry.getValue());
                                    break;
                            }
                        }
                        break;
                    case 239:
                        break;
                }
                return;
            }
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:104:0x03c5. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:61:0x0291. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:99:0x0380. Please report as an issue. */
    public String playerContent(String str, String str2, List<String> list) {
        String substring;
        String str3;
        String m47 = C0015.m47(f15short, 1223, 1, 2057);
        String m9 = C0003.m9(f15short, 1224, 6, 2939);
        String m27 = C0008.m27(f15short, 1230, 4, 1467);
        String m272 = C0008.m27(f15short, 1234, 4, 3003);
        String m52 = C0017.m52(f15short, 1238, 1, 3149);
        String m41 = C0013.m41(f15short, 1239, 9, 1764);
        try {
            String str4 = C0011.m35(f15short, 1248, 22, 1126) + str2;
            Dv Pi = lk.h(fP.oq(str4, q(str4, this.V0))).Pi(C0008.m27(f15short, 1270, 6, 459));
            JSONObject jSONObject = new JSONObject();
            int i = 0;
            while (true) {
                int size = Pi.size();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < size ? 1709 : 1678;
                        case 204:
                            String faVar = Pi.get(i).toString();
                            boolean contains = faVar.contains(m41);
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = contains ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        int i4 = i + 1;
                                        int i5 = 48767;
                                        while (true) {
                                            i5 ^= 48784;
                                            switch (i5) {
                                                case 14:
                                                    break;
                                                case 239:
                                                    i5 = 48798;
                                                    break;
                                            }
                                        }
                                        i = i4;
                                        break;
                                    case 500:
                                        String substring2 = faVar.substring(faVar.indexOf(m41), faVar.lastIndexOf(C0011.m35(f15short, 1276, 8, 2172)) + 1);
                                        substring = substring2.substring(substring2.indexOf(C0006.m18(f15short, 1284, 1, 1654)) + 2, substring2.lastIndexOf(C0008.m27(f15short, 1285, 1, 2193)));
                                        int i6 = 1864;
                                        while (true) {
                                            i6 ^= 1881;
                                            switch (i6) {
                                                case 17:
                                                    i6 = 48674;
                                                    continue;
                                                case 47483:
                                                    break;
                                                default:
                                                    continue;
                                            }
                                        }
                                        break;
                                }
                            }
                            break;
                        case 239:
                            substring = "";
                            break;
                    }
                }
            }
            long currentTimeMillis = System.currentTimeMillis();
            String str5 = C0009.m30(f15short, 1286, 31, 1847) + currentTimeMillis + C0004.m12(f15short, 1317, 4, 927) + V0(substring + m52 + currentTimeMillis, CE.h(substring + m52 + currentTimeMillis, CE.V0).substring(0, 16)) + C0017.m52(f15short, 1321, 5, 728) + substring;
            JSONObject jSONObject2 = new JSONObject(fP.oq(str5, q(str5, ""))).getJSONObject(C0018.m56(f15short, 1326, 4, 2244));
            ArrayList arrayList = new ArrayList();
            boolean isNull = jSONObject2.isNull(m272);
            String m26 = C0007.m26(f15short, 1330, 6, 3043);
            String m37 = C0012.m37(f15short, 1336, 3, 3036);
            String m472 = C0015.m47(f15short, 1339, 7, 2462);
            String m92 = C0003.m9(f15short, 1346, 5, 2149);
            int i7 = 48891;
            while (true) {
                i7 ^= 48908;
                switch (i7) {
                    case 22:
                    case 53:
                        boolean isNull2 = jSONObject2.isNull(m27);
                        String m473 = C0015.m47(f15short, 1351, 14, 2280);
                        String m372 = C0012.m37(f15short, 1365, 11, 2520);
                        int i8 = 49666;
                        while (true) {
                            i8 ^= 49683;
                            switch (i8) {
                                case 17:
                                    i8 = !isNull2 ? 49759 : 49728;
                                case 50:
                                case 76:
                                    arrayList.add(jSONObject2.optString(m27).replace(m372, m473));
                                    break;
                                case 83:
                                    break;
                            }
                        }
                        boolean isNull3 = jSONObject2.isNull(m9);
                        int i9 = 49790;
                        while (true) {
                            i9 ^= 49807;
                            switch (i9) {
                                case 18:
                                case 51:
                                    break;
                                case 84:
                                    String[] split = jSONObject2.optString(m9).split(C0008.m27(f15short, 1376, 1, 3019));
                                    int i10 = 0;
                                    while (true) {
                                        int length = split.length;
                                        int i11 = 49914;
                                        while (true) {
                                            i11 ^= 49931;
                                            switch (i11) {
                                                case 497:
                                                    i11 = i10 < length ? 50658 : 50627;
                                                case 1711:
                                                case 1736:
                                                    break;
                                                case 1769:
                                                    arrayList.add(split[i10].replace(m372, m473));
                                                    i10++;
                                                    int i12 = 50689;
                                                    while (true) {
                                                        i12 ^= 50706;
                                                        switch (i12) {
                                                            case 19:
                                                                i12 = 50720;
                                                                break;
                                                            case 50:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                            }
                                            break;
                                        }
                                    }
                                    break;
                                case 241:
                                    i9 = !isNull3 ? 49883 : 49852;
                            }
                        }
                        String str6 = (String) arrayList.get(new Random().nextInt(arrayList.size()));
                        boolean contains2 = str6.contains(C0000.m1(f15short, 1377, 3, 2869));
                        int i13 = 50813;
                        while (true) {
                            i13 ^= 50830;
                            switch (i13) {
                                case 18:
                                    break;
                                case 53:
                                    HashMap hashMap = new HashMap();
                                    fP.i4(str6, q(str6, ""), hashMap);
                                    String I = fP.I(hashMap);
                                    L.Tw tw = new L.Tw(this) { // from class: com.github.catvod.spider.Bdys01.1
                                        final Bdys01 V0;

                                        {
                                            this.V0 = this;
                                            int m10 = C0003.m10();
                                            int i14 = 1616;
                                            while (true) {
                                                i14 ^= 1633;
                                                switch (i14) {
                                                    case 14:
                                                    case 49:
                                                        i14 = m10 <= 0 ? 1709 : 1678;
                                                    case 204:
                                                        System.out.println(Long.valueOf(C0003.m11("iaISGxzNrmDVd8")));
                                                        break;
                                                    case 239:
                                                        break;
                                                }
                                                return;
                                            }
                                        }

                                        @Override // com.github.catvod.spider.merge.L
                                        protected void onFailure(Call call, Exception exc) {
                                        }

                                        /* JADX INFO: Access modifiers changed from: protected */
                                        @Override // com.github.catvod.spider.merge.L
                                        public String onResponse(Response response) {
                                            return null;
                                        }
                                    };
                                    fP.q(fP.j(), I, null, I(I), tw);
                                    int code = tw.getResult().code();
                                    String m56 = C0018.m56(f15short, 1380, 20, 2983);
                                    int i14 = 51588;
                                    while (true) {
                                        i14 ^= 51605;
                                        switch (i14) {
                                            case 17:
                                                i14 = code == 200 ? 51681 : 51650;
                                            case 54:
                                            case 87:
                                                str3 = "";
                                                break;
                                            case 116:
                                                InputStream byteStream = tw.getResult().body().byteStream();
                                                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                                                byte[] bArr = new byte[4];
                                                while (true) {
                                                    int read = byteStream.read(bArr, 0, 4);
                                                    int i15 = 51712;
                                                    while (true) {
                                                        i15 ^= 51729;
                                                        switch (i15) {
                                                            case 14:
                                                            case 17:
                                                                i15 = read != -1 ? 51805 : 51774;
                                                            case 47:
                                                                break;
                                                            case 76:
                                                                byteArrayOutputStream.write(bArr, 0, read);
                                                                int i16 = 51836;
                                                                while (true) {
                                                                    i16 ^= 51853;
                                                                    switch (i16) {
                                                                        case 241:
                                                                            i16 = 52518;
                                                                            break;
                                                                        case 1963:
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                        }
                                                        byteArrayOutputStream.flush();
                                                        byte[] byteArray = byteArrayOutputStream.toByteArray();
                                                        byteStream.close();
                                                        String[] split2 = au.h(Arrays.copyOfRange(byteArray, 3354, byteArray.length)).split(m47);
                                                        int i17 = 0;
                                                        while (true) {
                                                            int length2 = split2.length;
                                                            int i18 = 52611;
                                                            while (true) {
                                                                i18 ^= 52628;
                                                                switch (i18) {
                                                                    case 23:
                                                                        i18 = i17 < length2 ? 52704 : 52673;
                                                                    case 54:
                                                                    case 85:
                                                                        break;
                                                                    case 116:
                                                                        String str7 = split2[i17];
                                                                        boolean contains3 = str7.contains(C0017.m52(f15short, 1400, 3, 941));
                                                                        int i19 = 52735;
                                                                        while (true) {
                                                                            i19 ^= 52752;
                                                                            switch (i19) {
                                                                                case 14:
                                                                                case 45:
                                                                                    break;
                                                                                case 1007:
                                                                                    i19 = contains3 ? 53479 : 52797;
                                                                                case 7927:
                                                                                    split2[i17] = m56 + str7;
                                                                                    break;
                                                                            }
                                                                        }
                                                                        int i20 = i17 + 1;
                                                                        int i21 = 53510;
                                                                        while (true) {
                                                                            i21 ^= 53527;
                                                                            switch (i21) {
                                                                                case 17:
                                                                                    i21 = 53541;
                                                                                    break;
                                                                                case 50:
                                                                                    break;
                                                                            }
                                                                        }
                                                                        i17 = i20;
                                                                        break;
                                                                }
                                                                str3 = TextUtils.join(m47, split2);
                                                                int i22 = 53634;
                                                                while (true) {
                                                                    i22 ^= 53651;
                                                                    switch (i22) {
                                                                        case 17:
                                                                            i22 = 53665;
                                                                            continue;
                                                                        case 50:
                                                                            break;
                                                                        default:
                                                                            continue;
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                                break;
                                        }
                                    }
                                    jSONObject.put(m37, C0017.m52(f15short, 1403, 42, 2176) + Base64.encodeToString(str3.getBytes(), 2));
                                    jSONObject.put(m92, 0);
                                    jSONObject.put(m472, "");
                                    jSONObject.put(m26, new JSONObject(I(m56)).toString());
                                    break;
                                case 243:
                                    if (!contains2) {
                                        break;
                                    } else {
                                        i13 = 51557;
                                    }
                                case 4075:
                                    jSONObject.put(m92, 0);
                                    jSONObject.put(m472, "");
                                    jSONObject.put(m37, str6);
                                    jSONObject.put(m26, "");
                                    break;
                                default:
                                    continue;
                            }
                            i13 = 50875;
                        }
                        break;
                    case 503:
                        i7 = !isNull ? 49635 : 48953;
                    case 32495:
                        String optString = jSONObject2.optString(m272);
                        jSONObject.put(m92, 0);
                        jSONObject.put(m472, "");
                        jSONObject.put(m37, optString);
                        jSONObject.put(m26, "");
                        break;
                }
                return jSONObject.toString();
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:32:0x0086. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:3:0x0033. Please report as an issue. */
    protected HashMap<String, String> q(String str, String str2) {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put(C0008.m27(f15short, 1445, 10, 1438), C0002.m6(f15short, 1455, 121, 753));
        boolean equals = str2.equals(C0005.m17(f15short, 1576, 6, 2107));
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = !equals ? 1709 : 1678;
                case 204:
                    hashMap.put(C0006.m18(f15short, 1582, 9, 3103), C0002.m6(f15short, 1591, 14, 813));
                    int length = str2.length();
                    int i2 = 1740;
                    while (true) {
                        i2 ^= 1757;
                        switch (i2) {
                            case 17:
                                i2 = length > 0 ? 1833 : 1802;
                            case 54:
                            case 471:
                                break;
                            case 500:
                                hashMap.put(C0018.m56(f15short, 1605, 7, 3215), str2);
                                break;
                        }
                    }
                    int length2 = this.h.length();
                    int i3 = 1864;
                    while (true) {
                        i3 ^= 1881;
                        switch (i3) {
                            case 17:
                                i3 = length2 > 0 ? 48736 : 48705;
                            case 47384:
                                break;
                            case 47417:
                                hashMap.put(C0004.m12(f15short, 1612, 6, 2155), this.h);
                                break;
                            case 47483:
                        }
                    }
                    break;
                case 239:
                    break;
            }
        }
        hashMap.put(C0014.m43(f15short, 1618, 15, 985), C0007.m26(f15short, 1633, 59, 2065));
        return hashMap;
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:20:0x0085. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:81:0x0117. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        String m30 = C0009.m30(f15short, 1692, 14, 2780);
        try {
            String str2 = C0013.m41(f15short, 1706, 29, 1667) + str + C0017.m52(f15short, 1735, 20, 2742);
            HZ h = lk.h(fP.oq(str2, q(str2, C0000.m1(f15short, 1755, 6, 1625))));
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            Dv Pi = h.Pi(C0013.m41(f15short, 1761, 15, 1166));
            int size = Pi.size();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = size > 0 ? 1709 : 1678;
                    case 204:
                        int i2 = 0;
                        while (true) {
                            int size2 = Pi.size();
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = i2 < size2 ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        Lm lm = Pi.get(i2);
                                        String I = lm.Pi(C0013.m41(f15short, 1776, 2, 1749)).I();
                                        String h2 = lm.Pi(C0011.m35(f15short, 1778, 4, 1147)).h(C0002.m6(f15short, 1782, 4, 715));
                                        boolean isEmpty = I.isEmpty();
                                        int i4 = 1864;
                                        while (true) {
                                            i4 ^= 1881;
                                            switch (i4) {
                                                case 17:
                                                    i4 = !isEmpty ? 48736 : 48705;
                                                case 47384:
                                                    break;
                                                case 47417:
                                                    boolean contains = I.contains(str);
                                                    int i5 = 48767;
                                                    while (true) {
                                                        i5 ^= 48784;
                                                        switch (i5) {
                                                            case 14:
                                                            case 45:
                                                                break;
                                                            case 76:
                                                                boolean contains2 = h2.contains(m30);
                                                                int i6 = 48891;
                                                                while (true) {
                                                                    i6 ^= 48908;
                                                                    switch (i6) {
                                                                        case 22:
                                                                        case 53:
                                                                            boolean contains3 = I.contains(str);
                                                                            int i7 = 49790;
                                                                            while (true) {
                                                                                i7 ^= 49807;
                                                                                switch (i7) {
                                                                                    case 18:
                                                                                    case 51:
                                                                                        break;
                                                                                    case 84:
                                                                                        boolean contains4 = h2.contains(m30);
                                                                                        int i8 = 49914;
                                                                                        while (true) {
                                                                                            i8 ^= 49931;
                                                                                            switch (i8) {
                                                                                                case 497:
                                                                                                    i8 = contains4 ? 50658 : 50627;
                                                                                                case 1711:
                                                                                                case 1736:
                                                                                                    break;
                                                                                                case 1769:
                                                                                                    Matcher matcher = this.j.matcher(h2);
                                                                                                    boolean find = matcher.find();
                                                                                                    int i9 = 50689;
                                                                                                    while (true) {
                                                                                                        i9 ^= 50706;
                                                                                                        switch (i9) {
                                                                                                            case 19:
                                                                                                                i9 = find ? 50782 : 50751;
                                                                                                            case 45:
                                                                                                                break;
                                                                                                            case 50:
                                                                                                            case 76:
                                                                                                                boolean contains5 = h2.contains(C0006.m18(f15short, 1786, 6, 1335));
                                                                                                                int i10 = 50813;
                                                                                                                while (true) {
                                                                                                                    i10 ^= 50830;
                                                                                                                    switch (i10) {
                                                                                                                        case 18:
                                                                                                                        case 53:
                                                                                                                            break;
                                                                                                                        case 243:
                                                                                                                            i10 = !contains5 ? 51557 : 50875;
                                                                                                                        case 4075:
                                                                                                                            HZ h3 = lk.h(fP.oq(h2, q(h2, "")));
                                                                                                                            JSONObject jSONObject2 = new JSONObject();
                                                                                                                            String group = matcher.group(1);
                                                                                                                            String e = h3.DQ(C0011.m35(f15short, 1792, 13, 1843)).e();
                                                                                                                            String h4 = h3.Pi(C0012.m37(f15short, 1805, 19, 2363)).h(C0012.m37(f15short, 1824, 3, 1060));
                                                                                                                            jSONObject2.put(C0003.m9(f15short, 1827, 8, 1384), e);
                                                                                                                            jSONObject2.put(C0005.m17(f15short, 1836, 11, 1132), C0011.m35(f15short, 1835, 1, 1204));
                                                                                                                            jSONObject2.put(C0011.m35(f15short, 1847, 6, 1995), group.replace(C0002.m6(f15short, 1853, 22, 2975), "") + C0015.m47(f15short, 1875, 4, 2319));
                                                                                                                            jSONObject2.put(C0013.m41(f15short, 1879, 7, 3090), h4);
                                                                                                                            jSONArray.put(jSONObject2);
                                                                                                                            break;
                                                                                                                    }
                                                                                                                }
                                                                                                                break;
                                                                                                        }
                                                                                                    }
                                                                                                    break;
                                                                                            }
                                                                                        }
                                                                                        break;
                                                                                    case 241:
                                                                                        i7 = contains3 ? 49883 : 49852;
                                                                                }
                                                                            }
                                                                            break;
                                                                        case 503:
                                                                            i6 = !contains2 ? 49635 : 48953;
                                                                        case 32495:
                                                                            int i11 = 49666;
                                                                            while (true) {
                                                                                i11 ^= 49683;
                                                                                switch (i11) {
                                                                                    case 17:
                                                                                        i11 = 49697;
                                                                                    case 50:
                                                                                        break;
                                                                                }
                                                                                break;
                                                                            }
                                                                    }
                                                                }
                                                                break;
                                                            case 239:
                                                                i5 = contains ? 48860 : 48829;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        i2++;
                                        int i12 = 51588;
                                        while (true) {
                                            i12 ^= 51605;
                                            switch (i12) {
                                                case 17:
                                                    i12 = 51619;
                                                    break;
                                                case 54:
                                                    break;
                                            }
                                        }
                                        break;
                                }
                                jSONObject.put(C0000.m1(f15short, 1886, 4, 3020), jSONArray);
                                return jSONObject.toString();
                            }
                        }
                        break;
                    case 239:
                        break;
                }
            }
        } catch (Exception e2) {
            SpiderDebug.log(e2);
        }
        return "";
    }
}
